package top.suven.base.http.enums;

/**
 * @ClassName:
 * @Description:
 * @Author aric
 * @Date 2018/5/29 下午4:10
 * @Copyright: (c) 2018 gc by https://www.gc.com.cn/
 * @Version : 1.0.0
 * --------------------------------------------------------
 * modifyer    modifyTime                 comment
 * <p>
 * --------------------------------------------------------
 */
public enum PadPoolEnumType {

    MAIN_POOL("1", "主营设备池"), CLOUD_POOL("2","云控设备池"), DISK_POOL("3", "网络云存储设备池"), MICRO_BUSINESS_POOL("4", "微商设备池"), POJIE_POOL("6", "破解设备池"), APPSTORE_POOL("2", "appstore设备池");
    String value;
    String name;
    public String getValue() {
        return value;
    }
    public String getName() {
        return name;
    }
    PadPoolEnumType(String value, String name) {
        this.value = value;
        this.name = name;
    }
    public static PadPoolEnumType getByValue(String value) {
        for(PadPoolEnumType typeEnum : PadPoolEnumType.values()) {
            if(typeEnum.value.equals(value)) {
                return typeEnum;
            }
        }
        throw new IllegalArgumentException("No element matches " + value);
    }

}
